<!--
 * @Author: your name
 * @Date: 2022-01-11 08:26:19
 * @LastEditTime: 2022-01-11 17:00:44
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \elementui\src\views\Slot.vue
-->
<template >
  <div>
    插槽
    <Myson> 
        <template v-slot:hello>
            <h1>hello</h1>
        </template>
        <template v-slot:world>
            <h2>world</h2>
        </template>
    </Myson>
    <!-- <Myson>
      <h1 slot="hello">hello</h1>
      <h1 slot="world">world</h1>
    </Myson> -->
  </div>
</template>
<script>
import Myson from "../components/Myson.vue";
export default {
  name: "Slot",
  components: {
    Myson,
  },
};
</script>

<style scope>
</style>